package com.baizhi.service;

import com.baizhi.entity.Admin;

import java.util.List;
import java.util.Map;

/**
 * Created by 野马 on 2019/6/14.
 */
public interface AdminService {

    public Admin login(String username,String password);

    public void updatePassword(String newPassword,int id);

    //添加管理员
    public void insertAdmin(Admin admin);
    //删除管理员
    public void deleteAdmin(int id);
    //修改
    public void updateAdmin(Admin admin);
    //查
    public Map selectList(int page, int rows);

}
